package com.yw.swagger.tool;

import com.yw.swagger.model.SysBpsUsers;

import java.util.Date;

/**
 * @Author: Abeiv
 * @Description:
 * @Date: 2019/10/25 14:08
 */
public class token {
//    public String getToken(SysBpsUsers user) {
//        Date start = new Date();
//        long currentTime = System.currentTimeMillis() + 60* 60 * 1000;//一小时有效时间
//        Date end = new Date(currentTime);
//        String token = "";
//
//        token = JWT.create().withAudience(user.get).withIssuedAt(start).withExpiresAt(end)
//                .sign(Algorithm.HMAC256(user.getPassword()));
//        return token;
//    }
}
